using System.Collections.Generic;
using System.Net.Mail;

namespace TaskKernel.Infrastructure
{
    public class TaskMessage
    {
        private readonly IBodyTemplate _bodyTemplate;
        public IList<Attachment> Attachments;
        public string MessageSender;
        public string MessageSenderDisplayName;
        public string MessageSubject;
        public RecipientList RecipientsAddress;

        public TaskMessage(IBodyTemplate bodyTemplate)
        {
            RecipientsAddress = new RecipientList();
            Attachments = new List<Attachment>();
            _bodyTemplate = bodyTemplate;
        }

        public string MessageBody
        {
            get { return _bodyTemplate.GetBody(); }
        }
    }
}